﻿<UserControl x:Class="ModernWSPView.Pages.PageListSolutions"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Style="{StaticResource ContentRoot}">
        <ScrollViewer>
            <StackPanel MinWidth="200">
                <TextBlock Text="Solutions" Style="{StaticResource Heading2}" />
                <DataGrid AutoGenerateColumns="False" DataContext="{DynamicResource ResourceKey=globalXmlDataSource}" ItemsSource="{Binding XPath='//Solution'}">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Id" Binding="{Binding XPath=@Id}" HeaderStyle="{StaticResource ResourceKey=AlignLeftHeaderStyle}"/>
                        <DataGridTextColumn Header="Name" Binding="{Binding XPath=@SolutionName}" Width="*"  HeaderStyle="{StaticResource ResourceKey=AlignLeftHeaderStyle}"/>
                    </DataGrid.Columns>
                </DataGrid>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
